﻿
<!DOCTYPE html>
<html class="x-admin-sm">

<head>
    <meta charset="UTF-8">
    <title>成品分切</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <script src="~/js/layui/layui.js"></script>
    <link href="~/js/layui/css/layui.css" rel="stylesheet" />
    <link href="~/X-admin/css/xadmin.css" rel="stylesheet" />
    <script src="~/X-admin/js/jquery.min.js"></script>
    <script src="~/X-admin/js/xadmin.js"></script>
    <script src="~/js/framework/sysframework.js"></script>
    <script src="~/js/framework/commonjs.js"></script>

</head>
<body>
    <ul lay-bar="disabled" class="mWebBanner" id="mWebBanner">
        <li class="layui-nav-item" style="float:left;">
            <button id="btn-Save" type="button" name="btn_update" onclick="SavePlanGYData('dForm')" class="buttonCss">
                <i class="layui-icon" style="margin-right:3px">&#x1005;</i>保存数据
            </button>
        </li>
    </ul>


    <div class="layui-card">
        <div class="layui-card-body" style="padding-top:3%">
            
            <form id="dForm" class="layui-form layui-col-space5" lay-filter="form-filter">

                <table class="layui-table">
                    <tr>
                        <th align="center">原材料</th>
                        <th align="center">
                            材料规格
                        </th>
                        <th align="center">轴数</th>
                        <th align="center">分切米数</th>
                        <th align="center">分切规格</th>
                    </tr>
                    <tr>
                        <td>
                            <input type="text" id="fqczName1" name="fqczName1" class="layui-input" onclick="chooseProduct(1)">
                            <input type="hidden" id="fqczCode1" name="fqczCode1" class="layui-input" onclick="chooseProduct(1)">
                        </td>
                        <td>
                            <input type="text" id="clSpec1" name="clSpec1" class="layui-input">
                        </td>
                        <td>
                            <input type="text" id="clNum1" name="clNum1" class="layui-input">
                        </td>
                        <td>
                            <input type="text" id="fqNum1" name="fqNum1" class="layui-input">
                        </td>
                        <td>
                            <input type="text" id="fqSepc1" name="fqSepc1" class="layui-input">
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <input type="text" id="fqczName2" name="fqczName2" class="layui-input" onclick="chooseProduct(2)">
                            <input type="hidden" id="fqczCode2" name="fqczCode2" class="layui-input" onclick="chooseProduct(2)">
                        </td>
                        <td>
                            <input type="text" id="clSpec2" name="clSpec2" class="layui-input">
                        </td>
                        <td>
                            <input type="text" id="clNum2" name="clNum2" class="layui-input">
                        </td>
                        <td>
                            <input type="text" id="fqNum2" name="fqNum2" class="layui-input">
                        </td>
                        <td>
                            <input type="text" id="fqSepc2" name="fqSepc2" class="layui-input">
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <input type="text" id="fqczName3" name="fqczName3" class="layui-input" onclick="chooseProduct(3)">
                            <input type="hidden" id="fqczCode3" name="fqczCode3" class="layui-input" onclick="chooseProduct(3)">
                        </td>
                        <td>
                            <input type="text" id="clSpec3" name="clSpec3" class="layui-input">
                        </td>
                        <td>
                            <input type="text" id="clNum3" name="clNum3" class="layui-input">
                        </td>
                        <td>
                            <input type="text" id="fqNum3" name="fqNum13" class="layui-input">
                        </td>
                        <td>
                            <input type="text" id="fqSepc3" name="fqSepc3" class="layui-input">
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <input type="text" id="fqczName4" name="fqczName4" class="layui-input" onclick="chooseProduct(4)">
                            <input type="hidden" id="fqczCode4" name="fqczCode4" class="layui-input" onclick="chooseProduct(4)">
                        </td>
                        <td>
                            <input type="text" id="clSpec4" name="clSpec4" class="layui-input">
                        </td>
                        <td>
                            <input type="text" id="clNum4" name="clNum4" class="layui-input">
                        </td>
                        <td>
                            <input type="text" id="fqNum4" name="fqNum14" class="layui-input">
                        </td>
                        <td>
                            <input type="text" id="fqSepc4" name="fqSepc4" class="layui-input">
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <input type="text" id="fqczName5" name="fqczName5" class="layui-input" onclick="chooseProduct(5)">
                            <input type="hidden" id="fqczCode5" name="fqczCode5" class="layui-input" onclick="chooseProduct(5)">
                        </td>
                        <td>
                            <input type="text" id="clSpec5" name="clSpec5" class="layui-input">
                        </td>
                        <td>
                            <input type="text" id="clNum5" name="clNum5" class="layui-input">
                        </td>
                        <td>
                            <input type="text" id="fqNum5" name="fqNum15" class="layui-input">
                        </td>
                        <td>
                            <input type="text" id="fqSepc5" name="fqSepc5" class="layui-input">
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <input type="text" id="fqczName6" name="fqczName6" class="layui-input" onclick="chooseProduct(6)">
                            <input type="hidden" id="fqczCode6" name="fqczCode6" class="layui-input" onclick="chooseProduct(6)">
                        </td>
                        <td>
                            <input type="text" id="clSpec6" name="clSpec6" class="layui-input">
                        </td>
                        <td>
                            <input type="text" id="clNum6" name="clNum6" class="layui-input">
                        </td>
                        <td>
                            <input type="text" id="fqNum6" name="fqNum16" class="layui-input">
                        </td>
                        <td>
                            <input type="text" id="fqSepc6" name="fqSepc6" class="layui-input">
                        </td>
                    </tr>
                </table>

                <div class="layui-form-item">

                    <div class="layui-input-group" style="float:left;">
                        <div class="layui-input-prefix">
                            材料规格
                        </div>
                        <input type="text" id="clgg" name="clgg" class="layui-input">
                    </div>

                </div>

                <div class="layui-form-item">

                    <div class="layui-input-group" style="float:left;">
                        <div class="layui-input-prefix">
                            出卷方向
                        </div>
                        <input type="text" id="cjfx" name="cjfx" class="layui-input">
                    </div>
                    <div class="layui-input-group" style="float:left;margin-left:4%">
                        <div class="layui-input-prefix">
                            米数要求
                        </div>
                        <input type="text" id="msyq" name="msyq" class="layui-input">
                    </div>
                    <div class="layui-input-group" style="float:left;margin-left:6%">
                        <div class="layui-input-prefix">
                            直径要求
                        </div>
                        <input type="text" id="zjyq" name="zjyq" class="layui-input">
                    </div>

                </div>

                <div class="layui-form-item">
                   
                    <div class="layui-input-group" style="float:left;">
                        <div class="layui-input-prefix">
                            电晕面
                        </div>
                        <input type="text" id="dym" name="dym" class="layui-input">
                    </div>
                    <div class="layui-input-group" style="float:left;margin-left:3%">
                        <div class="layui-input-prefix">
                            热封面
                        </div>
                        <input type="text" id="rfm" name="rfm" class="layui-input">
                    </div>
                    <div class="layui-input-group" style="float:left;margin-left:5%">
                        <div class="layui-input-prefix">
                            张力
                        </div>
                        <input type="text" id="zl" name="zl" class="layui-input">
                    </div> 
                    <div class="layui-input-group" style="float:left;margin-left:7%">
                        <div class="layui-input-prefix">
                            机速
                        </div>
                        <input type="text" id="js" name="js" class="layui-input">
                    </div>

                </div>

                <div class="layui-form-item">
                  
                    <div class="layui-input-group" style="float:left;">
                        <div class="layui-input-prefix">
                            包装说明
                        </div>
                        <input type="text" id="bzsm" name="bzsm" class="layui-input" style="width:270%">
                    </div>
                </div>

                <div class="layui-form-item">

                    <div class="layui-input-group" style="float:left;margin-top:2%">
                        <div class="layui-input-prefix">
                            分切备注
                        </div>
                        @* <input type="text" id="fqbz" name="fqbz" class="layui-input" style="width:400%"> *@
                        <textarea id="fqbz" name="fqbz" placeholder="请输入内容" class="layui-textarea" style="width:550%"></textarea>

                    </div>

                </div>
                <input type="hidden" id="plCode" name="plCode">
                <input type="hidden" id="gxCode" name="gxCode" value="CPFQ">
            </form>
        </div>
    </div>

</body>

</html>
<script src="~/js/sysweb/planjs.js"></script>

<script>

    var plCode = "", isRead = "0";

    $(function () {
        plCode = getUrlVariable("plCode");
        isRead = getUrlVariable("isRead");
        $("input[ name='plCode']").val(plCode);
        loadGyFormData(plCode, "CPFQ");

        if (isRead == "1")
            $('#mWebBanner').hide();

        var mrbz = "净重/毛重都填写，每卷编号，每卷留1米样品，不要接头，用彩色胶带。纸管端面与膜的端面对齐，不能大了，完工后，分切人员按订单尺寸、分切要求对比一致后签字确认，打标签。 ";
        document.getElementById('fqbz').innerText = mrbz;
    })
    var czRow = "";
    /**
    * 存货选择
    * **/
    function chooseProduct(rowNo) {
        czRow = rowNo;
        let url = "../Basic/SelectInventory?isSingle=0";
        InfoOpenPage(url, "存货选择", "95%", "90%");
    }
    function getChildPar(pars) {
        if (pars != undefined) {
            $("input[ name='fqczName" + czRow + "']").val(pars[0].proName);
            $("input[ name='fqczName" + czRow + "']").attr('readonly', true);
            $("input[ name='fqczCode" + czRow + "']").val(pars[0].proCode);
            $("input[ name='clSpec" + czRow + "']").val(pars[0].spec);
            //  $("input[ name='fqSepc" + czRow + "']").val(pars[0].spec);
            $("input[ name='clSpec" + czRow + "']").attr('readonly', true);
        }
    }
</script>

